package com.bbt.dormassistant.service;

import com.bbt.dormassistant.entity.SecondHand;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface SecondHandService {


    /**
     *
     * @param userId 用户ID
     * @param title 标题
     * @param content 内容
     * @return Boolean
     */
    Boolean addSecondHand(String userId, String title, String content);


    /**
     *
     * @param secondHandId 需要查询的ID
     * @return SecondHand
     */
    SecondHand queryBySecondHandId(Integer secondHandId);


    /**
     *
     * @param currIndex 当前页
     * @param pageSize 页大小
     * @return List<SecondHand>
     */
    List<SecondHand> queryAll(Integer currIndex,Integer pageSize);


}
